<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
<jsp:include page="../inc.jsp"></jsp:include>
<script type="text/javascript">
	var ctx = '${pageContext.request.contextPath}'; 
</script>
<meta http-equiv="X-UA-Compatible" content="edge" />
<link href="${ctx}/css/fullcalendar.css" rel='stylesheet' />
<link href='${ctx}/css/fullcalendar.print.css' rel='stylesheet' media='print' />
<link href='${ctx}/css/notice/holiday.css' rel='stylesheet' />
<link href='${ctx}/css/meetingroom/meetingroom.css' rel='stylesheet' />

<script src='${ctx}/js/jquery.min.js'></script>
<script src='${ctx}/js/jquery-ui.custom.min.js'></script>
<script src='${ctx}/js/fullcalendar.min.js'></script>

<script type="text/javascript" src="${ctx}/jslib/meetingroom/meetingroom.js"></script>
<script type="text/javascript">
	var sessionInfo_userId = '${sessionInfo.id}';
	loginName = '${sessionInfo.loginName}';  
	loginId = '${sessionInfo.id}';
	var ownerId ;
</script>
<title></title>
</head>
<body class="easyui-layout" data-options="fit:true,border:false">
	<div data-options="region:'center',fit:true,border:false">
		<div id='wrap'>

			<div id='external-events'>
				<h4>会议室</h4>
				<div id="room_name_div"></div>
				<c:if test="${fn:contains(sessionInfo.resourceList, '/meetingroom/config')}">
					<p>
						<a id="btn" href="javascript:meetroomAdd()" class="easyui-linkbutton">添加会议室</a> 
						<a id="btn" href="javascript:meetroomDel()" class="easyui-linkbutton">删除会议室</a> 
						<a id="btn" href="javascript:meetroomMod()" class="easyui-linkbutton">修改会议室</a> 
						<!-- <button onclick="meetroomAdd()" type="button">添加会议室</button>
						<button onclick="meetroomDel()" type="button">删除会议室</button> 
						<button onclick="meetroomMod()" type="button">修改会议室</button> -->
					</p>
				</c:if>
			</div>

			<div id='calendar' style="float: left"></div>

			<div style='clear: both'></div>
		</div>
	</div>
	<div id="dd" class="dialog_none">Dialog Content.</div>
</body>
</html>